// pages/distribution/distribution.js
const app = getApp();
var router = require("../../router.js");
Page({
  /**
   * 页面的初始数据
   */
  data: {
    show1:false,
    show2:false,
    show3:false
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function () {

  },
  open_1(){
    this.setData({
      show1:!this.data.show1
    })
  },
  open_2() {
    this.setData({
      show2: !this.data.show2
    })
  },
  open_3() {
    this.setData({
      show3: !this.data.show3
    })
  },
  // 底部
  index: function () {
    app.radTo('../index/index')
  },
  underLine: function () {
    app.radTo('../underLine/underLine')
  },
  course: function () {
    app.radTo('../course/course')
  },
  distribution: function () {
    app.radTo('../distribution/distribution')
  },
  mine: function () {
    app.radTo('../mine/mine')
  },
  go_info: function (e) {
    var id = e.currentTarget.dataset.index;
    app.navTo('../about_us/about_us?id=' + id +'&type=2')
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var that = this;
    app.request({
      url: router.system.about,
      method: "POST",
      success: function (data) {
        that.setData({
          company: data.company,
          teachers: data.teachers,
          wonderful: data.wonderful,
        });
      }
    })
  }
})